package com.cmf.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @Author: cmf
 * @Date: 2025/8/27 12:32
 * @Version: v1.0.0
 * @Description: 菜单类型枚举
 **/
@Getter
public enum CategoryType {

    CATEGORY_TYPE_1(1, "菜品"),
    CATEGORY_TYPE_2(2, "套餐");

    // 枚举值
    @EnumValue
    // 序列化时返回给前端的值
    @JsonValue
    private final Integer type;
    private final String desc;

    CategoryType(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }
}